﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Arc.DairyMan.DairyMan.Common;

namespace Arc.DairyMan.DairyMan.Model
{
    public class MilkCollection : AbsModel
    {
        public int MilkCollectionId { get; set; }
        public int SabhasadId { get; set; }
        public DateTime Date { get; set; }
        public Shift Shift { get; set; }
        public MilkType MilkType { get; set; }
        public decimal Quantity { get; set; }
        public decimal Fat { get; set; }
        public decimal Rate { get; set; }
        public decimal Amount { get; set; }

        public MilkCollection()
        {
            FriendlyName = "MilkCollection";
        }

        public override void SetDefaultValues()
        {
            base.SetDefaultValues();
            TransactionMode = TransactionModes.Insert;
            SabhasadId = 0;
            Quantity = Fat = Rate = Amount = 0;
            MilkType = MilkType.Cow;
            Date = DateTime.Now;
            Shift = Shift.Morning;
        }
    }
}
